﻿using PoliticalClassifier.Support;

namespace PoliticalClassifier.DataSource
{
    /// <summary>
    /// Provides an internal implementation for a "no valid rows in data source" error.
    /// </summary>
    internal class DataSourceNoValidRowsError : DataSourceErrorBase
    {
        #region Construction
        /// <summary>
        /// Constructs a default "no valid rows" error.
        /// </summary>
        public DataSourceNoValidRowsError() 
            : base(DataSourceLoadErrorType.NoValidRows)
        {
        }
        #endregion

        #region Public Methods
        /// <summary>
        /// Gets a human readable error message.
        /// </summary>
        /// <returns>A human readable error message.</returns>
        public override string GetErrorMessage()
        {
            return Resources.NoValidRowsErrorMessage;
        }
        #endregion
    }
}
